import request from "@/utils/request"

export default
{
  /**
   * 多条件查询排班列表
   * @param current
   * @param limit
   * @param actQuery
   */
  getTimeList(current,limit,timeQuery)
  {
    return request
    ({
      method:"POST",
      url:`/yy/time-management/pageConditionTimeManagementList/${current}/${limit}`,
      data: timeQuery
    })
  },
  /**
   * 新增排班
   * @param addTime
   */
   addTime(addTime)
   {
     return request({
       method: 'POST',
       url:'/yy/time-management/addTimeManagement',
       data:addTime
     })
   },
  /**
   * 修改排班
   * @param updateDepartmentDto
   */
  updateTime(updateTimeInfo)
  {
    return request({
      method: 'POST',
      url:'/yy/time-management/updateTimeManagement',
      data:updateTimeInfo
    })
  },

  

  /**
   * 删除排班
   * @param id
   */
  deleteTimeById(id)
  {
    return request({
      method: 'GET',
      url:`/yy/time-management/deleteTimeManagement/${id}`,
    })
  },

}
